package com.hh.demo_ui;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.hh.features.PfKeyboard;
import com.hh.ui.UiUtility;

public class Sample_EditText extends Activity {

	private LinearLayout _mlLContainer;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.sample_edittext);

		/*
		 * In this demo , you will see the different editText style in sample_edittext.xml
		 */
		
		_mlLContainer=(LinearLayout) findViewById(R.id.llEditTextContainer);
	}

	/**
	 * Invoked when clicking on button "Clear focus and hide keyBoard"
	 * @param v
	 */
	public void onCLearFocus(View v){
		
		// Clear focus from the main layout
		UiUtility.clearAllChildrensFocus(_mlLContainer);
		
		// Hide Keyboard 
		PfKeyboard.hide(this, v);
	}
}
